<%@ page language="java" import="com.yb.util.comm.RequestUtil" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
String path = request.getContextPath();
String name = RequestUtil.getParam(request, "name", "");
String auding = RequestUtil.getParam(request, "auding", "");
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>发布公告</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
	<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript"	src="../resource/js/easyui/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" href="../resource/js/kindeditor-4.1/plugins/code/prettify.css" />
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/kindeditor-min.js"></script>
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/plugins/code/prettify.js"></script>
	<link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	    <link rel="stylesheet" href="../resource/css/memberCenter/infowithoutmenu.css" type="text/css"></link>
  </head>
<script type="text/javascript">
	var name = '<%=name%>';
	var auding = '<%=auding%>';
</script>
  <body><estateTag:security></estateTag:security>
  	<center><jsp:include page="../index/top.jsp"></jsp:include></center>
      <div style="width: 100%;margin-top: 10px;" align="center">
			<table width="100%" class="layoutTab">
				<tr> 
					<!-- <td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
						<td valign="top" align="center">
									<form name="form" method="post"  target="tempF"
										action="../brand/saveAnnouncement.shtml"  
									onsubmit="return checkSave()"	>
					 <input id="menuCls" type="hidden" value="33">
					 <div class="position" align="left"><label>您所在的位置：</label>拼购管理模块&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;商家管理&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;维护品牌公告</div>
					<br/><div class="info_top"></div>
					<div class="info_mid" align="center">
										<table width="940px" style="margin-left: 25px;" border="0" id="userinfo" cellpadding="1" cellspacing="1">
											<tr>
												<td align="center" colspan="2">
													<b>公告编辑 </b>
												</td>
											</tr>
											<tr>
												<td align="right" width="15%">
														内容：
												</td>
												<td align="left" id="filter_ke">
														<textarea  style="width:770px;height:500px;word-wrap:break-word;" id="content1"  name="tgBrand.announcement">
                      ${tgBrand.announcement}
                  </textarea>
												</td>
											</tr>

											<tr>
												<td colspan="2" align="center">
                                                      <input type="hidden" name="tgBrand.id" value="${tgBrand.id}">
                                                      <input type="hidden" name="tgBrand.sysuserId" value="${tgBrand.sysuserId}">
													<!-- 审核状态 未审核 -->
													<input type="submit" value="保存">
													&nbsp;&nbsp;
													 <input type="button" onclick="goback()" value="返 回">&nbsp;&nbsp;
												</td>
											</tr>
										</table>
										   </div>
			<div class="info_bottom">&nbsp;</div>
									</form>
								</td>
							</tr>
						</table>
						    <iframe name="tempF" style="display: none;"></iframe>
		</div>          <input type="hidden"/>
						<div style="margin-top: 10px;">
		</div>    
		<script>
					 var editor;
        KindEditor.ready(function(K) {
		               editor = K.create('#content1', {
		               allowFileManager : true,
		               uploadJson : '../resource/js/kindeditor-4.1/upload_json.jsp',
				       fileManagerJson : '../resource/js/kindeditor-4.1/file_manager_json.jsp',
                       items : [
					 	           'preview','source', '|', 'undo', 'redo', '|',  'cut', 'copy', 'paste',
						        'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
						        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
						        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
						        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
						        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
						       'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
						        'link', 'unlink'
                  ]
                        
                });
        });
			$(function(){
	     $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		 $("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		 $("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
        });
        
        
        function checkSave(){
           alert("保存成功！");
           return true;
        }
         function  goback(){
		            window.location.href="../shoper/branlist.jsp?name="+name+"&auding="+auding;
	     }    
	
        
		</script>
  	<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center></body>
</html>
